package ltd.dujiabao.capability.adapter.driven.persistence.passthrough;

import java.util.List;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import ltd.dujiabao.capability.adapter.driven.persistence.capmng.modulespec.ModuleSpecDTO;
import ltd.dujiabao.capability.adapter.driven.persistence.capmng.newmodulespec.CapabilityDTO;
import ltd.dujiabao.capability.adapter.driven.persistence.capmng.newmodulespec.NewModuleSpecDTO;
import ltd.dujiabao.capability.common.dto.Result;

/**
 * @author : DuJiabao
 * @Project : ddd-capability
 * @Time : 2024/4/11 21:06
 * @Desc :
 */
@FeignClient(url = "passthrough", name = "passthrough")
public interface PassThroughService {
    @PostMapping("/findModuleSpec")
    Result<ModuleSpecDTO> findModuleSpec(@RequestParam("devId") Long devId);

    @PostMapping("/findNewModuleSpec")
    Result<NewModuleSpecDTO> findNewModuleSpec(@RequestParam("devId") Long devId);

    @PostMapping("/getCapability")
    Result<CapabilityDTO> getCapability(@RequestParam("devId") Long devId, @RequestBody List<String> moduleNames);
}
